<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% macro inputStyle(label, name, type='text', value='', required=false) %}
<p>
    {%if label%}
     <label for="{{ name }}">{{ label }}：</label>
    {%endif%}

    <input
        type="{{ type }}"
        placeholder="请输入{{ label }}"
        name="{{ name }}"
        id="{{ name }}"
        value="{{ value }}"
    >
</p>
{% endmacro %}
{%macro errorInfo(type) %}
{% for message in get_flashed_messages(category_filter=(type)) %}
<span style="color:red;padding:10px">{{message}}</span>
{% endfor%}
{%endmacro%}
</body>
</html>